package loading;

import java.awt.*;

import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.JWindow;

import javax.swing.JLabel;
import javax.swing.ImageIcon;

public class LoadingWindow extends JWindow {
   JPanel contentPane;
   JLabel imageLabel = new JLabel();
   
   public LoadingWindow(){
       try {
           contentPane = (JPanel) getContentPane();
           contentPane.setLayout(null);
           setBackground(Color.white);
           setSize(new Dimension(1024, 370));
           contentPane.setBorder(BorderFactory.createLineBorder(new Color(178, 178, 178)));
           setLocation(100, 100);
           
           // add the image label
           ImageIcon ii = new ImageIcon(this.getClass().getResource("/images/loading29.gif"));
           imageLabel.setIcon(ii);
           contentPane.add(imageLabel);
           imageLabel.setBounds(497, 170, 31, 31);
           
           this.setVisible(true);
       } catch (Exception exception) {
           exception.printStackTrace();
       }
   }

   public static void main(String[] args) {
       new LoadingWindow();
   }

}